﻿using Microsoft.Extensions.DependencyInjection;
using Orleans;
using Puppy.CommonService;
using System;
using Volo.Abp.Domain;
using Volo.Abp.Modularity;

namespace Puppy
{
    [DependsOn(typeof(AbpDddDomainModule))]
    public class PuppyActorModule : AbpModule
    {
        public override void ConfigureServices(ServiceConfigurationContext context)
        {
            context.Services.AddSingleton(service =>
            {
                return service.GetRequiredService<IGrainFactory>().GetGrain<IIDGenerateActor>(Guid.Empty);
            });
        }
    }
}
